<?php
$favfruit="orange";

switch ($favfruit) {
    case "orange":
        echo "Your favorite fruit is orange!";
       // break;//看看穿透情况
    case "apple":
        echo "Your favorite fruit is apple!";
        break;
    case "banana":
        echo "Your favorite fruit is banana!";
        //break;
    
    default:
        echo "Your favorite fruit is neither apple, banana, or orange!";
}
?>